﻿using RabbitMQ.Client;

namespace VOL.RabbitMq.IRabbitMq
{
    /// <summary>
    /// 消息处理器接口
    /// </summary>
    public interface IRabbitMqMessageHandler
    {
        /// <summary>
        /// 主题负载异步处理器
        /// </summary>
        /// <param name="client">MQ客户端</param>
        /// <param name="ExchangeName">交换机名称</param>
        /// <param name="queuename">路由名称</param>
        /// <param name="payloadContent">负载内容</param>
        /// <returns></returns>
        Task<bool> TopicPayloadAsyncHandler(IModel client, string ExchangeName, string queuename, string payloadContent);
    }
}
